#include <iostream>

#include <boost/array.hpp>
#include <boost/foreach.hpp>

using namespace boost;

int main()
{
   array<int, 10> arr;

   for(size_t index=0; index < arr.size(); index++)
      arr[index] = 2*index;

   BOOST_FOREACH(int val, arr) {
      std::cout<< val << "  " << std::endl;
   }
}
